<template>
  <div class="app">
    <h1>当前计数为：{{ counter }}</h1>
    <button @click="increment">+</button>
  </div>
</template>

<script setup>
import useCounter from '@/hooks/counter.js'
const { counter, increment } = useCounter()
</script>

<style lang="scss" scoped></style>
